#define _CRT_SECURE_NO_WARNINGS
#include "DList.h"
void test1()
{
	ListNode* List = ListCreate();
	ListPushBack(List,1);
	ListPushBack(List,2);
	ListPushBack(List,3);
	ListPopBack(List);
	ListPopBack(List);
	ListPopBack(List);
	ListPrint(List);
}
void test2()
{
	ListNode* List = ListCreate();
	ListPushFront(List, 1);
	ListPushFront(List, 2);
	ListPushFront(List, 3);
	ListPushFront(List, 4);
	ListPopFront(List);
	ListPopFront(List);
	ListPopFront(List);
	ListPopFront(List);
	ListPrint(List);
}
void test3()
{
	ListNode* List = ListCreate();
	ListPushFront(List, 1);
	ListPushFront(List, 3);
	ListPushFront(List, 4);
	ListPrint(List);
	ListNode* pos = ListFind(List, 1);
	ListInsert(pos, 2);
	ListPrint(List);
	ListErase(pos->prev);
	ListPrint(List);
}
int main()
{
	//test1();
	//test2();
	test3();
	return 0;
}